package com.elegant.code.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elegant.code.aop.local.LocalLock;
import com.elegant.code.aop.redission.RedissonLock;
import com.elegant.code.domain.User;

import java.io.Serializable;

public interface UserMapper extends BaseMapper<UserMapper> {
    @RedissonLock(name = "user")
    User findOne(Serializable id);
}
